package com.huishu.commons.enums;

import lombok.Getter;

/**
 * 请求响应枚举
 *
 * @author ljj
 * @date 2022/4/7
 */
@Getter
public enum ResponseEnum {

    /**
     * 服务器异常或参数校验失败
     */
    FAIL("-1", "服务器异常"), SUCCESS("10000", "success")
    ,IDEMPOTENT("10015", "幂等处理")
    ,WECHAT_LOGIN("100318", "请使用微信登录，绑定手机号后购买")
    ,BALANCE_INSUFFICIENT("100317", "余额不足"),
    DELIVERY_INFO("100011","当前地区不支持配送");

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;
}
